﻿#include "EightChar.h"
#include "Lunar.h"
#include <iostream>

EightChar::EightChar()
{
	_lunar = new Lunar();
	std::cout << 111 << std::endl;
}

EightChar::EightChar(Lunar* lunar)
{
	_lunar = lunar;
}



const std::map<std::string, int>EightChar::CHANG_SHENG_OFFSET = {
  {"甲", 1}, {"丙", 10}, {"戊", 10}, {"庚", 7}, {"壬", 4},
  {"乙", 6}, {"丁", 9}, {"己", 9}, {"辛", 0}, {"癸", 3}
};

const std::vector<std::string> EightChar::MONTH_ZHI = {
   "", "寅", "卯", "辰", "巳", "午",
   "未", "申", "酉", "戌", "亥", "子", "丑"
};

const std::vector<std::string>EightChar::CHANG_SHENG =
{ "长生", "沐浴", "冠带", "临官", "帝旺", "衰", "病", "死", "墓", "绝", "胎", "养" };

int EightChar::getSect()
{
	return EightChar::_sect;
}

void EightChar::setSect(int value)
{
	this->_sect = value;
}

Lunar* EightChar::getLunar()
{
	return this->_lunar;
}

